home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_emacs.idb / usr / freeware / share / emacs / 19.34 / lisp / appt.el.z / appt.el
Encoding:
Text File  |  1998-10-28  |  19.7 KB  |  601 lines

  1. ;;; appt.el --- appointment notification functions.
  2.  
  3. ;; Copyright (C) 1989, 1990, 1994 Free Software Foundation, Inc.
  4.  
  5. ;; Author: Neil Mager <neilm@juliet.ll.mit.edu>
  6. ;; Maintainer: FSF
  7. ;; Keywords: calendar
  8.  
  9. ;; This file is part of GNU Emacs.
  10.  
  11. ;; GNU Emacs is free software; you can redistribute it and/or modify
  12. ;; it under the terms of the GNU General Public License as published by
  13. ;; the Free Software Foundation; either version 2, or (at your option)
  14. ;; any later version.
  15.  
  16. ;; GNU Emacs is distributed in the hope that it will be useful,
  17. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. ;; GNU General Public License for more details.
  20.  
  21. ;; You should have received a copy of the GNU General Public License
  22. ;; along with GNU Emacs; see the file COPYING.  If not, write to the
  23. ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  24. ;; Boston, MA 02111-1307, USA.
  25.  
  26. ;;; Commentary:
  27.  
  28. ;;
  29. ;; appt.el - visible and/or audible notification of
  30. ;;           appointments from ~/diary file generated from
  31. ;;           Edward M. Reingold's calendar.el.
  32. ;;
  33. ;;
  34. ;; Comments, corrections, and improvements should be sent to
  35. ;; Neil M. Mager
  36. ;; Net                     <neilm@juliet.ll.mit.edu>
  37. ;; Voice                   (617) 981-4803
  38. ;;;
  39. ;;; Thanks to  Edward M. Reingold for much help and many suggestions, 
  40. ;;; And to many others for bug fixes and suggestions.
  41. ;;;
  42. ;;;
  43. ;;; This functions in this file will alert the user of a 
  44. ;;; pending appointment based on their diary file.
  45. ;;;
  46. ;;;
  47. ;;; ******* It is necessary to invoke 'display-time' ********
  48. ;;; *******  and 'diary' for this to work properly.  ********
  49. ;;; 
  50. ;;; A message will be displayed in the mode line of the emacs buffer
  51. ;;; and (if the user desires) the terminal will beep and display a message
  52. ;;; from the diary in the mini-buffer, or the user may select to 
  53. ;;; have a message displayed in a new buffer.
  54. ;;;
  55. ;;; The variable 'appt-message-warning-time' allows the
  56. ;;; user to specify how much notice they want before the appointment. The 
  57. ;;; variable 'appt-issue-message' specifies whether the user wants
  58. ;;; to to be notified of a pending appointment.
  59. ;;; 
  60. ;;; In order to use, the following should be in your .emacs file in addition to
  61. ;;; creating a diary file and invoking calendar:
  62. ;;;
  63. ;;;    Set some options
  64. ;;; (setq view-diary-entries-initially t)
  65. ;;; (setq appt-issue-message t)
  66. ;;;
  67. ;;;   The following three lines are required:
  68. ;;; (display-time)
  69. ;;; (add-hook 'diary-hook 'appt-make-list)
  70. ;;;
  71. ;;; 
  72. ;;;  This is an example of what can be in your diary file:
  73. ;;; Monday
  74. ;;;   9:30am Coffee break
  75. ;;;  12:00pm Lunch        
  76. ;;; 
  77. ;;; Based upon the above lines in your .emacs and diary files, 
  78. ;;; the calendar and diary will be displayed when you enter
  79. ;;; emacs and your appointments list will automatically be created.
  80. ;;; You will then be reminded at 9:20am about your coffee break
  81. ;;; and at 11:50am to go to lunch. 
  82. ;;;
  83. ;;; Use describe-function on appt-check for a description of other variables
  84. ;;; that can be used to personalize the notification system.
  85. ;;;
  86. ;;;  In order to add or delete items from todays list, use appt-add
  87. ;;;  and appt-delete.
  88. ;;;
  89. ;;;  Additionally, the appointments list is recreated automatically
  90. ;;;  at 12:01am for those who do not logout every day or are programming
  91. ;;;  late.
  92. ;;;
  93. ;;; Brief internal description - Skip this if your not interested!
  94. ;;;
  95. ;;; The function appt-check is run from the 'loadst' process which is started
  96. ;;; by invoking (display-time). A temporary function below modifies
  97. ;;; display-time-filter 
  98. ;;; (from original time.el) to include a hook which will invoke appt-check.
  99. ;;; This will not be necessary in the next version of gnuemacs.
  100. ;;;
  101. ;;;
  102. ;;; The function appt-make-list creates the appointments list which appt-check
  103. ;;; reads. This is all done automatically.
  104. ;;; It is invoked from the function list-diary-entries.
  105. ;;;
  106. ;;; You can change the way the appointment window is created/deleted by
  107. ;;; setting  the variables
  108. ;;;
  109. ;;;         appt-disp-window-function
  110. ;;; and
  111. ;;;          appt-delete-window-function
  112. ;;;
  113. ;;; For instance, these variables can be set to functions that display
  114. ;;; appointments in pop-up frames, which are lowered or iconified after
  115. ;;; appt-display-interval seconds.
  116. ;;;
  117.  
  118. ;;; Code:
  119.  
  120. ;; Make sure calendar is loaded when we compile this.
  121. (require 'calendar)
  122.  
  123. (provide 'appt)
  124.  
  125. ;;;###autoload
  126. (defvar appt-issue-message t
  127.   "*Non-nil means check for appointments in the diary buffer.
  128. To be detected, the diary entry must have the time
  129. as the first thing on a line.")
  130.  
  131. ;;;###autoload
  132. (defvar appt-message-warning-time 12
  133.   "*Time in minutes before an appointment that the warning begins.")
  134.  
  135. ;;;###autoload
  136. (defvar appt-audible t
  137.   "*Non-nil means beep to indicate appointment.")
  138.  
  139. ;;;###autoload
  140. (defvar appt-visible t
  141.   "*Non-nil means display appointment message in echo area.")
  142.  
  143. ;;;###autoload
  144. (defvar appt-display-mode-line t
  145.   "*Non-nil means display minutes to appointment and time on the mode line.")
  146.  
  147. ;;;###autoload
  148. (defvar appt-msg-window t
  149.   "*Non-nil means display appointment message in another window.")
  150.  
  151. ;;;###autoload
  152. (defvar appt-display-duration 10
  153.   "*The number of seconds an appointment message is displayed.")
  154.  
  155. ;;;###autoload
  156. (defvar appt-display-diary t
  157.   "*Non-nil means to display the next days diary on the screen. 
  158. This will occur at midnight when the appointment list is updated.")
  159.  
  160. (defvar appt-time-msg-list nil
  161.   "The list of appointments for today.
  162. Use `appt-add' and `appt-delete' to add and delete appointments from list.
  163. The original list is generated from the today's `diary-entries-list'.
  164. The number before each time/message is the time in minutes from midnight.")
  165.  
  166. (defconst max-time 1439
  167.   "11:59pm in minutes - number of minutes in a day minus 1.")
  168.  
  169. (defvar appt-display-interval 3
  170.   "*Number of minutes to wait between checking the appointment list.")
  171.   
  172. (defvar appt-buffer-name " *appt-buf*"
  173.   "Name of the appointments buffer.")
  174.   
  175. (defvar appt-disp-window-function 'appt-disp-window
  176.   "Function called to display appointment window.")
  177.   
  178. (defvar appt-delete-window-function 'appt-delete-window
  179.   "Function called to remove appointment window and buffer.")
  180.  
  181. (defun appt-check ()
  182.   "Check for an appointment and update the mode line.
  183. Note: the time must be the first thing in the line in the diary
  184. for a warning to be issued.
  185.  
  186. The format of the time can be either 24 hour or am/pm.
  187. Example: 
  188.  
  189.                02/23/89
  190.                  18:00 Dinner
  191.             
  192.               Thursday
  193.                 11:45am Lunch meeting.
  194.  
  195. The following variables control the action of the notification:
  196.  
  197. appt-issue-message
  198.     If T, the diary buffer is checked for appointments.
  199.  
  200. appt-message-warning-time
  201.     Variable used to determine if appointment message
  202.     should be displayed.
  203.  
  204. appt-audible
  205.     Variable used to determine if appointment is audible.
  206.     Default is t.
  207.  
  208. appt-visible
  209.     Variable used to determine if appointment message should be
  210.     displayed in the mini-buffer. Default is t.
  211.  
  212. appt-msg-window
  213.     Variable used to determine if appointment message
  214.     should temporarily appear in another window. Mutually exclusive
  215.     to appt-visible.
  216.  
  217. appt-display-duration
  218.     The number of seconds an appointment message
  219.     is displayed in another window.
  220.  
  221. appt-display-interval
  222.     The number of minutes to wait between checking the appointments
  223.     list.
  224.  
  225. appt-disp-window-function 
  226.         Function called to display appointment window. You can customize
  227.     appt.el by setting this variable to a function different from the
  228.     one provided with this package.
  229.   
  230. appt-delete-window-function 
  231.         Function called to remove appointment window and buffer.  You can
  232.     customize appt.el by setting this variable to a function different
  233.     from the one provided with this package.
  234.  
  235. This function is run from the loadst process for display time.
  236. Therefore, you need to have `(display-time)' in your .emacs file."
  237.  
  238.  
  239.   (if (or (= appt-display-interval 1)
  240.       ;; This is true every appt-display-interval minutes.
  241.       (= 0 (mod (/ (nth 1 (current-time)) 60) appt-display-interval)))
  242.       (let ((min-to-app -1)
  243.         (new-time ""))
  244.     (save-excursion
  245.  
  246.       ;; Get the current time and convert it to minutes
  247.       ;; from midnight. ie. 12:01am = 1, midnight = 0.
  248.  
  249.       (let* ((now (decode-time))
  250.          (cur-hour (nth 2 now))
  251.          (cur-min (nth 1 now))
  252.          (cur-comp-time (+ (* cur-hour 60) cur-min)))
  253.  
  254.         ;; At the first check after 12:01am, we should update our 
  255.         ;; appointments to today's list.
  256.  
  257.         (if (and (>= cur-comp-time 1)
  258.              (<= cur-comp-time appt-display-interval))
  259.         (if (and view-diary-entries-initially appt-display-diary)
  260.             (diary)
  261.           (let ((diary-display-hook 'appt-make-list))
  262.             (diary))))
  263.  
  264.         ;; If there are entries in the list, and the
  265.         ;; user wants a message issued
  266.         ;; get the first time off of the list
  267.         ;; and calculate the number of minutes until
  268.         ;; the appointment.
  269.  
  270.         (if (and appt-issue-message appt-time-msg-list)
  271.         (let ((appt-comp-time (car (car (car appt-time-msg-list)))))
  272.           (setq min-to-app (- appt-comp-time cur-comp-time))
  273.  
  274.           (while (and appt-time-msg-list 
  275.                   (< appt-comp-time cur-comp-time))
  276.             (setq appt-time-msg-list (cdr appt-time-msg-list)) 
  277.             (if appt-time-msg-list
  278.             (setq appt-comp-time 
  279.                   (car (car (car appt-time-msg-list))))))
  280.  
  281.           ;; If we have an appointment between midnight and
  282.           ;; 'appt-message-warning-time' minutes after midnight,
  283.           ;; we must begin to issue a message before midnight.
  284.           ;; Midnight is considered 0 minutes and 11:59pm is
  285.           ;; 1439 minutes. Therefore we must recalculate the minutes
  286.           ;; to appointment variable. It is equal to the number of 
  287.           ;; minutes before midnight plus the number of 
  288.           ;; minutes after midnight our appointment is.
  289.  
  290.           (if (and (< appt-comp-time appt-message-warning-time)
  291.                (> (+ cur-comp-time appt-message-warning-time)
  292.                   max-time))
  293.               (setq min-to-app (+ (- (1+ max-time) cur-comp-time))
  294.                 appt-comp-time))
  295.  
  296.           ;; issue warning if the appointment time is 
  297.           ;; within appt-message-warning time
  298.  
  299.           (if (and (<= min-to-app appt-message-warning-time)
  300.                (>= min-to-app 0))
  301.               (progn
  302.             (if appt-msg-window
  303.                 (progn
  304.                   (string-match
  305.                    "[0-9]?[0-9]:[0-9][0-9]\\(am\\|pm\\)?" 
  306.                    display-time-string)
  307.  
  308.                   (setq new-time (substring display-time-string 
  309.                             (match-beginning 0)
  310.                             (match-end 0)))
  311.                   (funcall
  312.                    appt-disp-window-function
  313.                    min-to-app new-time
  314.                    (car (cdr (car appt-time-msg-list))))
  315.                   
  316.                   (run-at-time
  317.                    (format "%d sec" appt-display-duration)
  318.                    nil
  319.                    appt-delete-window-function))
  320.               ;;; else
  321.  
  322.               (if appt-visible
  323.                   (message "%s" 
  324.                        (car (cdr (car appt-time-msg-list)))))
  325.  
  326.               (if appt-audible
  327.                   (beep 1)))
  328.  
  329.             (if appt-display-mode-line
  330.                 (progn
  331.                   (string-match
  332.                    "[0-9]?[0-9]:[0-9][0-9]\\(am\\|pm\\)?" 
  333.                    display-time-string)
  334.  
  335.                   (setq new-time (substring display-time-string 
  336.                             (match-beginning 0)
  337.                             (match-end 0)))
  338.                   (setq display-time-string
  339.                     (concat  "App't in "
  340.                          min-to-app " min. " new-time " "))
  341.  
  342.                   (force-mode-line-update t)
  343.                   (sit-for 0)))
  344.  
  345.             (if (= min-to-app 0)
  346.                 (setq appt-time-msg-list
  347.                   (cdr appt-time-msg-list))))))))))))
  348.  
  349.  
  350. ;; Display appointment message in a separate buffer.
  351. (defun appt-disp-window (min-to-app new-time appt-msg)
  352.   (require 'electric)
  353.  
  354.   ;; Make sure we're not in the minibuffer
  355.   ;; before splitting the window.
  356.  
  357.   (if (equal (selected-window) (minibuffer-window))
  358.       (if (other-window 1) 
  359.       (select-window (other-window 1))
  360.     (if window-system
  361.         (select-frame (other-frame 1)))))
  362.       
  363.   (let* ((this-buffer (current-buffer))
  364.      (this-window (selected-window))
  365.      (appt-disp-buf (set-buffer (get-buffer-create appt-buffer-name))))
  366.  
  367.     (appt-select-lowest-window)
  368.     (if (cdr (assq 'unsplittable (frame-parameters)))
  369.     ;; In an unsplittable frame, use something somewhere else.
  370.     (display-buffer appt-disp-buf)
  371.       ;; Otherwise, split the bottom window and use the lower part.
  372.       (split-window)
  373.       (pop-to-buffer appt-disp-buf))
  374.     (setq mode-line-format 
  375.       (concat "-------------------- Appointment in "
  376.           min-to-app " minutes. " new-time " %-"))
  377.     (insert-string appt-msg)
  378.     (shrink-window-if-larger-than-buffer (get-buffer-window appt-disp-buf t))
  379.     (set-buffer-modified-p nil)
  380.     (raise-frame (selected-frame))
  381.     (select-window this-window)
  382.     (if appt-audible
  383.     (beep 1))))
  384.       
  385. (defun appt-delete-window ()
  386.   "Function called to undisplay appointment messages.
  387. Usually just deletes the appointment buffer."
  388.   (let ((window (get-buffer-window appt-buffer-name t)))
  389.     (and window
  390.      (or (and (fboundp 'frame-root-window)
  391.           (eq window (frame-root-window (window-frame window))))
  392.          (delete-window window))))
  393.   (kill-buffer appt-buffer-name)
  394.   (if appt-audible
  395.       (beep 1)))
  396.  
  397. ;; Select the lowest window on the frame.
  398. (defun appt-select-lowest-window ()
  399.   (let* ((lowest-window (selected-window))
  400.      (bottom-edge (car (cdr (cdr (cdr (window-edges))))))
  401.          (last-window (previous-window))
  402.          (window-search t))
  403.     (while window-search
  404.       (let* ((this-window (next-window))
  405.              (next-bottom-edge (car (cdr (cdr (cdr 
  406.                                                (window-edges this-window)))))))
  407.         (if (< bottom-edge next-bottom-edge)
  408.             (progn
  409.               (setq bottom-edge next-bottom-edge)
  410.               (setq lowest-window this-window)))
  411.  
  412.         (select-window this-window)
  413.         (if (eq last-window this-window)
  414.             (progn
  415.               (select-window lowest-window)
  416.               (setq window-search nil)))))))
  417.  
  418.  
  419. (defun appt-add (new-appt-time new-appt-msg)
  420.   "Add an appointment for the day at TIME and issue MESSAGE.
  421. The time should be in either 24 hour format or am/pm format."
  422.  
  423.   (interactive "sTime (hh:mm[am/pm]): \nsMessage: ")
  424.   (if (string-match "[0-9]?[0-9]:[0-9][0-9]\\(am\\|pm\\)?" new-appt-time)
  425.       nil
  426.     (error "Unacceptable time-string"))
  427.   
  428.   (let* ((appt-time-string (concat new-appt-time " " new-appt-msg))
  429.          (appt-time (list (appt-convert-time new-appt-time)))
  430.          (time-msg (cons appt-time (list appt-time-string))))
  431.     (setq appt-time-msg-list (append appt-time-msg-list
  432.                                      (list time-msg)))
  433.     (setq appt-time-msg-list (appt-sort-list appt-time-msg-list)))) 
  434.  
  435. (defun appt-delete ()
  436.   "Delete an appointment from the list of appointments."
  437.   (interactive)
  438.   (let* ((tmp-msg-list appt-time-msg-list))
  439.     (while tmp-msg-list
  440.       (let* ((element (car tmp-msg-list))
  441.              (prompt-string (concat "Delete " 
  442.                                     (prin1-to-string (car (cdr element))) 
  443.                                     " from list? "))
  444.              (test-input (y-or-n-p prompt-string)))
  445.         (setq tmp-msg-list (cdr tmp-msg-list))
  446.         (if test-input
  447.             (setq appt-time-msg-list (delq element appt-time-msg-list)))))
  448.     (message "")))
  449.                  
  450.  
  451. ;; Create the appointments list from todays diary buffer.
  452. ;; The time must be at the beginning of a line for it to be
  453. ;; put in the appointments list.
  454. ;;                02/23/89
  455. ;;                  12:00pm lunch
  456. ;;                 Wednesday
  457. ;;                   10:00am group meeting
  458. ;; We assume that the variables DATE and NUMBER
  459. ;; hold the arguments that list-diary-entries received.
  460. ;; They specify the range of dates that the diary is being processed for.
  461.  
  462. ;;;###autoload
  463. (defun appt-make-list ()
  464.   ;; We have something to do if the range of dates that the diary is
  465.   ;; considering includes the current date.
  466.   (if (and (not (calendar-date-compare
  467.          (list (calendar-current-date))
  468.          (list original-date)))
  469.        (calendar-date-compare
  470.         (list (calendar-current-date))
  471.             (list (calendar-gregorian-from-absolute
  472.            (+ (calendar-absolute-from-gregorian original-date)
  473.               number)))))
  474.       (save-excursion
  475.     ;; Clear the appointments list, then fill it in from the diary.
  476.     (setq appt-time-msg-list nil)
  477.     (if diary-entries-list
  478.  
  479.         ;; Cycle through the entry-list (diary-entries-list)
  480.         ;; looking for entries beginning with a time. If 
  481.         ;; the entry begins with a time, add it to the
  482.         ;; appt-time-msg-list. Then sort the list.
  483.  
  484.         (let ((entry-list diary-entries-list)
  485.           (new-time-string ""))
  486.           ;; Skip diary entries for dates before today.
  487.           (while (and entry-list
  488.               (calendar-date-compare
  489.                (car entry-list) (list (calendar-current-date))))
  490.         (setq entry-list (cdr entry-list)))
  491.           ;; Parse the entries for today.
  492.           (while (and entry-list 
  493.               (calendar-date-equal 
  494.                (calendar-current-date) (car (car entry-list))))
  495.         (let ((time-string (substring (prin1-to-string 
  496.                            (cdr (car entry-list))) 2 -2)))
  497.  
  498.           (while (string-match
  499.               "[0-9]?[0-9]:[0-9][0-9]\\(am\\|pm\\)?.*" 
  500.               time-string)
  501.             (let* ((appt-time-string (substring time-string
  502.                             (match-beginning 0)
  503.                             (match-end 0))))
  504.  
  505.               (if (< (match-end 0) (length time-string))
  506.               (setq new-time-string (substring time-string 
  507.                                (+ (match-end 0) 1)
  508.                                nil))
  509.             (setq new-time-string ""))
  510.  
  511.               (string-match "[0-9]?[0-9]:[0-9][0-9]\\(am\\|pm\\)?"
  512.                     time-string)
  513.  
  514.               (let* ((appt-time (list (appt-convert-time 
  515.                            (substring time-string
  516.                               (match-beginning 0)
  517.                               (match-end 0)))))
  518.                  (time-msg (cons appt-time
  519.                          (list appt-time-string))))
  520.             (setq time-string new-time-string)
  521.             (setq appt-time-msg-list (append appt-time-msg-list
  522.                              (list time-msg)))))))
  523.         (setq entry-list (cdr entry-list)))))
  524.     (setq appt-time-msg-list (appt-sort-list appt-time-msg-list))
  525.  
  526.     ;; Get the current time and convert it to minutes
  527.     ;; from midnight. ie. 12:01am = 1, midnight = 0,
  528.     ;; so that the elements in the list
  529.     ;; that are earlier than the present time can
  530.     ;; be removed.
  531.  
  532.     (let* ((now (decode-time))
  533.            (cur-hour (nth 2 now))
  534.            (cur-min (nth 1 now))
  535.            (cur-comp-time (+ (* cur-hour 60) cur-min))
  536.            (appt-comp-time (car (car (car appt-time-msg-list)))))
  537.  
  538.       (while (and appt-time-msg-list (< appt-comp-time cur-comp-time))
  539.         (setq appt-time-msg-list (cdr appt-time-msg-list)) 
  540.         (if appt-time-msg-list
  541.         (setq appt-comp-time (car (car (car appt-time-msg-list))))))))))
  542.   
  543.  
  544. ;;Simple sort to put the appointments list in order.
  545. ;;Scan the list for the smallest element left in the list.
  546. ;;Append the smallest element left into the new list, and remove
  547. ;;it from the original list.
  548. (defun appt-sort-list (appt-list)
  549.   (let ((order-list nil))
  550.     (while appt-list
  551.       (let* ((element (car appt-list))
  552.              (element-time (car (car element)))
  553.              (tmp-list (cdr appt-list)))
  554.         (while tmp-list
  555.           (if (< element-time (car (car (car tmp-list))))
  556.               nil
  557.             (setq element (car tmp-list))
  558.             (setq element-time (car (car element))))
  559.           (setq tmp-list (cdr tmp-list)))
  560.         (setq order-list (append order-list (list element)))
  561.         (setq appt-list (delq element appt-list))))
  562.     order-list))
  563.  
  564.  
  565. (defun appt-convert-time (time2conv)
  566.   "Convert hour:min[am/pm] format to minutes from midnight."
  567.  
  568.   (let ((conv-time 0)
  569.         (hr 0)
  570.         (min 0))
  571.  
  572.     (string-match ":[0-9][0-9]" time2conv)
  573.     (setq min (string-to-int 
  574.                (substring time2conv 
  575.                           (+ (match-beginning 0) 1) (match-end 0))))
  576.   
  577.     (string-match "[0-9]?[0-9]:" time2conv)
  578.     (setq hr (string-to-int 
  579.               (substring time2conv 
  580.                          (match-beginning 0)
  581.                          (match-end 0))))
  582.   
  583.     ;; convert the time appointment time into 24 hour time
  584.   
  585.     (if (and (string-match  "[p][m]" time2conv) (< hr 12))
  586.         (progn
  587.           (string-match "[0-9]?[0-9]:" time2conv)
  588.           (setq hr (+ 12 hr))))
  589.   
  590.     ;; convert the actual time
  591.     ;; into minutes for comparison
  592.     ;; against the actual time.
  593.   
  594.     (setq conv-time (+ (* hr 60) min))
  595.     conv-time))
  596.  
  597. (add-hook 'display-time-hook 'appt-check)
  598.  
  599. ;;; appt.el ends here
  600.  
  601.